import {WeaTools} from 'ecCom'

export const getTaskList = params => {   //任务列表
    return WeaTools.callApi('/api/workrelate/task/getTaskList', 'GET', params);
}
export const getMoreTaskList = params => {   //更多任务列表
    return WeaTools.callApi('/api/workrelate/task/getMoreList', 'GET', params);
}
export const getChildTaskList = params => {   //子任务列表
    return WeaTools.callApi('/api/workrelate/task/getChildTaskList', 'GET', params);
}
export const getTaskDetail = params => {   //得到任务详情
    return WeaTools.callApi('/api/workrelate/task/getTaskDetail', 'GET', params);
}
export const editTaskInfo = params => {   //修改任务详情
    return WeaTools.callApi('/api/workrelate/task/editTaskInfo', 'POST', params);
}
export const getTaskLog = params => {   //获取操作日志  
    return WeaTools.callApi('/api/workrelate/task/taskOperation', 'GET', params);
}
export const addTaskFbInfo = params => {  //添加反馈
    return WeaTools.callApi('/api/workrelate/task/addTaskFbInfo', 'POST', params);
}
export const taskOperation = params => {   //删除反馈 //获取反馈
    return WeaTools.callApi('/api/workrelate/task/taskOperation', 'GET', params);
}
export const setSpecial = params => {   //添加关注或取消关注
    return WeaTools.callApi('/api/workrelate/task/setSpecial', 'GET', params);
}
export const getSubTaskList = params => {   //任务详情页页子列表查询
    return WeaTools.callApi('/api/workrelate/task/getSubTaskList', 'GET', params);
}
export const addTask = params => {   //新增任务
    return WeaTools.callApi('/api/workrelate/task/addTask', 'POST', params);
}
export const addTaskView = params => {   //记住任务视图
    return WeaTools.callApi('/api/workrelate/task/taskViewInfo', 'POST', params);
}
export const viewDocFiled = params => {   //给相关附件权限
    return WeaTools.callApi('/api/workrelate/common/viewDocFiled', 'POST', params);
}
export const taskTag = params => {   //任务标签
    return WeaTools.callApi('/api/workrelate/task/taskTag', 'POST', params);
}
export const tableList = params => {   //任务表格
    return WeaTools.callApi('/api/workrelate/task/tableList', 'GET', params);
}